package biz.core.domain;


import common.tree.ITreeNode;
import common.tree.StrutsTreeNode;

public class Area implements ITreeNode{
	private int id;
	private String areaName;
	private int parentId;
	
	public StrutsTreeNode toTreeNode() {
		StrutsTreeNode treenode = new StrutsTreeNode();
		treenode.setId(getId());
		treenode.setParentId(getParentId());
		treenode.setName(getAreaName());
		return treenode;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getAreaName() {
		return areaName;
	}
	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	}

	

